package com.tocea.formation.users.library;

import com.tocea.formation.users.IUser;


public enum Libraryfactory {
    
    INSTANCE;
    
    public IBook createBook(String _author, String _name) {
        return new BookImpl(_author, _name);
    }
    
    public IExemplaire createExemplaire(IBook _book) {
        return new Exemplaire(_book);
    }
    
    public ILibrary createLibrary() {
        return new LibraryImpl();
    }
    
    public IRentBook createRentBook(IUser _user, IBook _book, long _id) {
        return new Rent(_user, _book, _id);
    }
    
    public IRentManager createRentManager(ILibrary _library) {
        return new RentManager(_library);
    }
}
